package dongshi.daddy.iterator;

import org.junit.Test;

public class IteratorClient {

    @Test
    public void checkAttendance(){
        Classs cls= new Classs();
        System.out.println("--------------开始点名--------------");
//        Iterator<Student> iterator= cls.iterator();
        MyIterator<Student> iterator= cls.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}